﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.IO;
using Vibz.Common;
using Vibz.Common.Channel;

namespace Vibz.Game.Bugs
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            using (Logs log = new Logs())
            {
                try
                {
                    GameWindow gWin = new GameWindow();
                    gWin.InvokeStart(new SocketClient(TerminalProcessor.RunServer("Bugs")), log);
                    Application.Run(gWin);
                }
                catch (Exception e)
                {
                    log.Write(e);
                }
            }

        }
    }
}
